package com.carkeeper.serviceManagement.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

//服务分类
@Table(name = "tb_service_type")
public class ServiceType implements Serializable {
    @Id
    private Long id;//分类id
    private String code;//分类编码
    private String name;//分类名称
    private String imgUrl;//图片地址
    private Integer level;//分类级别
    private Integer sort;//分类排序
    private Long parentId;//上级id
    private Integer currency;//是否通用 0未通过/1通过

    public ServiceType() {
    }

    public ServiceType(Long id, String code, String name, String imgUrl, Integer level, Integer sort, Long parentId, Integer currency) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.imgUrl = imgUrl;
        this.level = level;
        this.sort = sort;
        this.parentId = parentId;
        this.currency = currency;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getCurrency() {
        return currency;
    }

    public void setCurrency(Integer currency) {
        this.currency = currency;
    }
}
